package com.ruoyi.project.charging.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.charging.mapper.TChargingMqttMsgConvertMapper;
import com.ruoyi.project.charging.domain.TChargingMqttMsgConvert;
import com.ruoyi.project.charging.service.ITChargingMqttMsgConvertService;

/**
 * 岸电MQTT消息转换后的消息数据Service业务层处理
 * 
 * @author Yaoxuan Mo
 * @date 2025-07-28
 */
@Service
public class TChargingMqttMsgConvertServiceImpl implements ITChargingMqttMsgConvertService 
{
    @Autowired
    private TChargingMqttMsgConvertMapper tChargingMqttMsgConvertMapper;

    /**
     * 查询岸电MQTT消息转换后的消息数据
     * 
     * @param msgConvertId 岸电MQTT消息转换后的消息数据主键
     * @return 岸电MQTT消息转换后的消息数据
     */
    @Override
    public TChargingMqttMsgConvert selectTChargingMqttMsgConvertByMsgConvertId(String msgConvertId)
    {
        return tChargingMqttMsgConvertMapper.selectTChargingMqttMsgConvertByMsgConvertId(msgConvertId);
    }

    /**
     * 查询岸电MQTT消息转换后的消息数据列表
     * 
     * @param tChargingMqttMsgConvert 岸电MQTT消息转换后的消息数据
     * @return 岸电MQTT消息转换后的消息数据
     */
    @Override
    public List<TChargingMqttMsgConvert> selectTChargingMqttMsgConvertList(TChargingMqttMsgConvert tChargingMqttMsgConvert)
    {
        return tChargingMqttMsgConvertMapper.selectTChargingMqttMsgConvertList(tChargingMqttMsgConvert);
    }

    /**
     * 新增岸电MQTT消息转换后的消息数据
     * 
     * @param tChargingMqttMsgConvert 岸电MQTT消息转换后的消息数据
     * @return 结果
     */
    @Override
    public int insertTChargingMqttMsgConvert(TChargingMqttMsgConvert tChargingMqttMsgConvert)
    {
        return tChargingMqttMsgConvertMapper.insertTChargingMqttMsgConvert(tChargingMqttMsgConvert);
    }

    /**
     * 修改岸电MQTT消息转换后的消息数据
     * 
     * @param tChargingMqttMsgConvert 岸电MQTT消息转换后的消息数据
     * @return 结果
     */
    @Override
    public int updateTChargingMqttMsgConvert(TChargingMqttMsgConvert tChargingMqttMsgConvert)
    {
        return tChargingMqttMsgConvertMapper.updateTChargingMqttMsgConvert(tChargingMqttMsgConvert);
    }

    /**
     * 批量删除岸电MQTT消息转换后的消息数据
     * 
     * @param msgConvertIds 需要删除的岸电MQTT消息转换后的消息数据主键
     * @return 结果
     */
    @Override
    public int deleteTChargingMqttMsgConvertByMsgConvertIds(String[] msgConvertIds)
    {
        return tChargingMqttMsgConvertMapper.deleteTChargingMqttMsgConvertByMsgConvertIds(msgConvertIds);
    }

    /**
     * 删除岸电MQTT消息转换后的消息数据信息
     * 
     * @param msgConvertId 岸电MQTT消息转换后的消息数据主键
     * @return 结果
     */
    @Override
    public int deleteTChargingMqttMsgConvertByMsgConvertId(String msgConvertId)
    {
        return tChargingMqttMsgConvertMapper.deleteTChargingMqttMsgConvertByMsgConvertId(msgConvertId);
    }
}
